package err

type BusinessErr struct {
	*baseErr
}

func NewBusinessErr(code int, err error) *BusinessErr {
	return &BusinessErr{
		newBaseErr(code, err),
	}
}

func NewBusinessErrWithMsg(code int, msg string) *BusinessErr {
	return &BusinessErr{
		newBaseErrWithMsg(code, msg),
	}
}
